package com.ztf666.articlereview.mapper;

import com.ztf666.articlereview.entity.Review;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author z
 * @description 针对表【review】的数据库操作Mapper
 * @createDate 2022-02-21 15:32:18
 * @Entity com.ztf666.articlereview.entity.Review
 */
@Mapper
public interface ReviewMapper {

    int addReview(@Param("aid") int aid, @Param("pid") int pid, @Param("content") String content);

    List<Review> seletcReviewByAid(@Param("aid") int aid, @Param("pid") int pid);
}




